package cn.hhz._07springaop.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculate {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.hhz._07springaop");
        CalculatorImpl calculator = context.getBean(CalculatorImpl.class);
        calculator.add(20,10);
    }
}
